package icu.javayanglei.bilibili.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * 启动监听类
 *
 * @author yang
 * @version 1.0.0
 * @date 2022-01-15 23:43
 */
@Component
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class ApplicationStartedEventListener implements ApplicationListener<ContextRefreshedEvent> {

    @Transactional(rollbackFor = Exception.class)
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {

    }
}
